package net.zjitc.service.impl;

import net.zjitc.mapper.UserMapper;
import net.zjitc.pojo.User;
import net.zjitc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    public List<User> findAll() {
        return userMapper.findAll();
    }

    public User findByID(User user) {
        return userMapper.findByID(user);
    }

    public void del(User user) {
        userMapper.del(user);
    }

    public void insert(User user) {
        userMapper.insert(user);
    }

    public void update(User user) {
        userMapper.update(user);
    }

    public User check_login(User user) {
        return userMapper.check_login(user);
    }
}
